package com.yuju.group.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.yuju.group.dao.entity.SeqCode;
import com.yuju.group.model.SeqCodeModel;
import com.yuju.persist.base.mapper.BaseMapper;

public interface SeqCodeMapper extends BaseMapper<SeqCode, String> {
    int deleteByPrimaryKey(String id);

    int selectCountByMap(Map<Object, Object> map);

    List<SeqCode> selectListByMap(Map<Object, Object> map);

    int insert(SeqCode record);

    int insertSelective(SeqCode record);

    SeqCode selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SeqCode record);

    int updateByPrimaryKey(SeqCode record);

	int initGroupSeqCode(String groupId);

	int initHotelSeqCode(@Param("groupId") String groupId, @Param("hotelId") String hotelId);

	SeqCode getSeqCode(Map<Object, Object> map);
	
	SeqCode getSysSeqCode(Map<Object, Object> map);
	
	int updateSysSeqCode(SeqCodeModel seqCodeModel);
}